﻿///*
// * TiffImageBlock
// * 
// * initial implementation : 20.9.2008
// *
// * Copyright (c) Adam Sida, asida@centrum.cz.
// * All rights reserved.
// * 
// * for license see Petra.Gis.License.txt
// */
//using System;
//using System.Collections.Generic;
//using System.Windows.Media.Imaging;
//using Petra.Gis.Geometry.GridSupport;
//using Petra.Gis.Geometry.Support;
//using Petra.Gis.Imaging.Tiff;

//namespace Petra.Gis.DataServices
//{
//  /// <summary>
//  /// represents single block of tiff data
//  /// </summary>
//  public class TiffImageBlock : GridBlock
//  {

//    //protected BitmapBlock _b; //tiff image block
//    protected BoundingBox _blockBounds;
//    //protected BoundingBox _parentBounds;
//    protected Blocks _tiffImageBlocks;
//    protected int _blockId;

//    public TiffImageBlock(Blocks tiffImageBlocks, int blockId, BoundingBox blockBounds)
//    {
//      _blockId = blockId;
//      _tiffImageBlocks = tiffImageBlocks;
//      //_parentBounds = parentBounds;
//      //_b = b;
//      _blockBounds = blockBounds;
//    }




//    public override BitmapSource Source
//    {
//      get
//      {
//        return _tiffImageBlocks[_blockId].Source;
//      }
//    }



//    public override BoundingBox Bounds
//    {
//      get { return _blockBounds; }
//    }





//    public override int PixelWidth
//    {
//      get { return _tiffImageBlocks[_blockId].Bounds.Width; }
//    }





//    public override int PixelHeight
//    {
//      get { return _tiffImageBlocks[_blockId].Bounds.Height; }
//    }




//    public override GridCells SelectCellsByRange(BoundingBox range)
//    {
//      throw new NotImplementedException();
//    }

//  }
//}
